interface SendCommentAPIResData {
  code: number
  msg: string
  time: string
  data: null
}

interface SendCommentAPIData {
  order_id: string
  score: string
  content: string
  image: string
}

export function sendCommentAPI(data: SendCommentAPIData, token: string) {
  return httpInstance.post<SendCommentAPIResData, SendCommentAPIData>(
    '/api/order/addcomment',
    data,
    { headers: { token } },
  )
}
